/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    font-size: 14px;
}

.jd-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

/* 头部样式 */
.jd-header {
    padding: 15px 20px;
    background-color: #e1251b;
    display: flex;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* 逛好店组件样式 */
.good-shops {
    padding: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 20px;
    color: #333;
}

.more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.more i {
    margin-left: 5px;
}

/* 店铺分类导航 */
.shop-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 5px 15px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.category-btn.active {
    background-color: #e1251b;
    color: white;
}

.category-btn:hover:not(.active) {
    background-color: #e9e9e9;
}

/* 店铺列表 */
.shops-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.shop-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shop-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.shop-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.stars {
    color: #ff9900;
    margin-right: 5px;
}

.score {
    color: #e1251b;
    font-weight: bold;
    margin-right: 10px;
}

.sales {
    color: #999;
}

.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
}

.tag.official {
    background-color: #e8f4fd;
    color: #167bbc;
}

.tag.self-run {
    background-color: #fff0f0;
    color: #e1251b;
}

.shop-promotion {
    margin-top: auto;
}

.coupon {
    display: inline-block;
    font-size: 12px;
    color: #e1251b;
    padding: 2px 0;
    margin-right: 10px;
}

.follow-btn {
    background-color: #e1251b;
    color: white;
    border: none;
    padding: 8px 0;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.follow-btn:hover {
    background-color: #c81623;
}

.follow-btn.followed {
    background-color: #f5f5f5;
    color: #999;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more button {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.load-more button:hover {
    background-color: #f5f5f5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shops-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .shop-img img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .shops-list {
        grid-template-columns: 1fr;
    }
    
    .jd-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar {
        width: 100%;
        max-width: none;
    }
}
    